#coding:utf-8
from threading import Thread
from time import sleep
from os import system
from time import time

def ThreadHandle():
	a = system('ping www.baidu.com')
	now2 = time()
	time1 = now2-now1
	print time1
	print 'a',a


if __name__ == '__main__':
	now1 = time()
	for i in range(5):
		t = Thread(target=ThreadHandle)
		sleep(0.1)#解决打印未换行问题
		t.start()